<template>
  <el-footer class="footer" v-reveal="{ delay: 60, distance: 10 }">
    <div class="container">
      <div class="footer-content">
        <div class="footer-section">
          <div class="footer-logo">
            <img 
              src="https://lf-code-agent.coze.cn/obj/x-ai-cn/276483463938/attachment/ic_launcher_20250728121829.png" 
              alt="KBB Logo" 
              class="footer-logo-image"
            />
            <h3>KBB</h3>
          </div>
          <p class="footer-description">联系与捐赠</p>
          <div class="social-links">
            <a href="https://qm.qq.com/q/nLG9o7UMwg" target="_blank" rel="noopener noreferrer" class="social-link">
              <i class="fa-brands fa-qq"></i>
            </a>
            <a href="https://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&email=3253186469@qq.com" target="_blank" rel="noopener noreferrer" class="social-link">
              <i class="fa-regular fa-envelope"></i>
            </a>
            <a href="/donate" class="social-link">
              <i class="fa-brands fa-weixin"></i>
            </a>
            <a href="https://space.bilibili.com/1677424766?spm_id_from=333.1007.0.0" target="_blank" rel="noopener noreferrer" class="social-link">
              <i class="fa-brands fa-bilibili"></i>
            </a>
            <a href="https://github.com/yanxiajjd/KBBLET" target="_blank" rel="noopener noreferrer" class="social-link">
              <i class="fa-brands fa-github"></i>
            </a>
          </div>
        </div>
        
        <div class="footer-section">
          <h4>快速链接</h4>
          <ul class="footer-links">
            <li><router-link to="/" class="footer-link">首页</router-link></li>
            <li><router-link to="/announcements" class="footer-link">公告</router-link></li>
            <li><router-link to="/commands" class="footer-link">指令</router-link></li>
            <li><router-link to="/donation" class="footer-link">捐赠</router-link></li>
            <li><router-link to="/donor-thanks" class="footer-link">感谢名单</router-link></li>
            <li><router-link to="/admin" class="footer-link">管理员后台</router-link></li>
          </ul>
        </div>
        
        <div class="footer-section">
          <h4>服务器信息</h4>
          <ul class="footer-info">
            <li class="info-item">
              <span class="info-label">IP地址:</span>
              <span class="info-value">mc.kbblet.cn:25565</span>
            </li>
            <li class="info-item">
              <span class="info-label">资源下载:</span>
              <a href="https://www.123865.com/s/anDgTd-ZyiUH" class="info-link" target="_blank" rel="noopener noreferrer">
                <i class="fa-solid fa-download"></i> 123云盘
              </a>
            </li>
            <li class="info-item">
              <span class="info-label">版本:</span>
              <span class="info-value">1.21.4</span>
            </li>
            <li class="info-item">
              <span class="info-label">核心:</span>
              <span class="info-value">LEAVES</span>
            </li>
          </ul>
        </div>
        
        <div class="footer-section">
          <h4>联系我们</h4>
          <p class="contact-description">
            订阅更新请联系我们的官方邮箱：
          </p>
          <div class="email-container">
            <i class="fa-solid fa-envelope email-icon"></i>
            <span class="email-text">3253186469@qq.com</span>
          </div>
        </div>
      </div>
      
      <div class="footer-bottom">
        <p>&copy; 2025 KBB. 保留所有权利。Minecraft 是 Mojang Studios 的注册商标。</p>
      </div>
    </div>
  </el-footer>
</template>

<script>
export default {
  name: 'Footer'
}
</script>

<style scoped>
.footer {
  background: white;
  border-top: 1px solid #e5e7eb;
  padding: 64px 0 32px;
  margin-top: auto;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 48px;
  margin-bottom: 48px;
}

.footer-section h3,
.footer-section h4 {
  color: #1f2937;
  margin-bottom: 24px;
  font-weight: bold;
}

.footer-section h3 {
  font-size: 1.5rem;
}

.footer-section h4 {
  font-size: 1.125rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-image {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
}

.footer-description {
  color: #6b7280;
  margin-bottom: 24px;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background: #4CAF50;
  color: white;
  transform: translateY(-2px);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 16px;
}

.footer-link {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #4CAF50;
}

.footer-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.info-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px 0;
}

.info-label {
  color: #6b7280;
  font-weight: 500;
}

.info-value {
  color: #1f2937;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", Menlo, monospace;
  font-weight: 500;
}

.info-link {
  color: #4CAF50;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.info-link:hover {
  color: #388e3c;
  text-decoration: underline;
}

.contact-description {
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.6;
}

.email-container {
  background: #f3f4f6;
  border-radius: 50px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
}

.email-container:hover {
  background: #e5e7eb;
}

.email-icon {
  color: #4CAF50;
  font-size: 1.125rem;
}

.email-text {
  color: #1f2937;
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid #e5e7eb;
  padding-top: 32px;
  text-align: center;
  color: #6b7280;
  font-size: 0.875rem;
}

@media (max-width: 768px) {
  .footer {
    padding: 48px 0 24px;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .info-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .social-links {
    justify-content: center;
  }
  
  .email-container {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .footer {
    padding: 32px 0 16px;
  }
  
  .footer-content {
    gap: 24px;
  }
  
  .footer-section h3 {
    font-size: 1.25rem;
  }
  
  .footer-section h4 {
    font-size: 1rem;
  }
  
  .footer-logo-image {
    width: 32px;
    height: 32px;
  }
  
  .social-link {
    width: 36px;
    height: 36px;
  }
}
</style> 